From 4edf6e82b78a1cc56932d8aeabe769ddca39a404 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Wed, 22 Sep 2010 17:27:21 +0100 Subject: [PATCH] libxl: do not modify static-max after domain creation static-max represents the maximum memory the domain can ever have, therefore it shouldn't be changed after domain creation. [adjusted to cope with code movement since patch series written -iwj] Signed-off-by: Stefano Stabellini Acked-by: Ian Jackson Signed-off-by: Ian Jackson --- tools/libxl/libxl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index ab92e53a41..bec0b28318 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -2768,9 +2768,6 @@ int libxl_domain_setmaxmem(libxl_ctx *ctx, uint32_t domid, uint32_t max_memkb) goto out; } - if (domid != 0) - libxl__xs_write(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/memory/static-max", dompath), "%"PRIu32, max_memkb); - rc = 0; out: libxl__free_all(&gc); -- 2.30.2